package com.cy.sys.dao;

import com.cy.sys.pojo.PageObject;
import com.cy.sys.pojo.Role;
import com.cy.sys.pojo.Rolemenu;
import com.cy.sys.pojo.checkbox;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoleDao {

    List<Role> doFindPageObjects(@Param("username") String username,
                                 @Param("startIndex") Long startIndex,
                                 @Param("pageSize") Integer pageSize);
    Long RowCount(@Param("username") String username);

    int doDeleteObject(@Param("id")Integer id);
    int doDeleteOther(@Param("id")Integer id);

    Rolemenu doFindObjectById(@Param("id")Integer id);

    int doUpdateObject(@Param("id")Integer id,
                       @Param("name")String name,
                       @Param("note")String note);
    int insertqx(@Param("menuId") Integer menuId,
                 @Param("id")Integer id);
    int doSaveObject(@Param("name")String name,
                     @Param("note")String note);
    int doFindId(@Param("name") String name);
    List<checkbox> doFindRoles(@Param("id")Integer id);


}
